<?php

use Illuminate\Database\Seeder;

class CommentTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //写入数据库comment表中
        DB::table('comment')->insert([
            [
                'comment' => '千万不要活在幻想里,我就是天天做梦',
                'article_id' => rand(1, 5),
            ],
            [
                'comment' => '你就是铁头功...？铁头娃',
                'article_id' => rand(1, 5),
            ],
            [
                'comment' => '可以说很正能量了',
                'article_id' => rand(1, 5),
            ],
            [
                'comment' => '你的赞好少',
                'article_id' => rand(1, 5),
            ],
        ]);
    }
}
